package com.fate.framework.annotation;

import com.fate.framework.validate.CheckPhoneValidate;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;
import java.lang.annotation.*;

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Constraint(validatedBy = CheckPhoneValidate.class)
public @interface CheckPhone {
  String message() default "您输入的手机号不符合要求";

  Class<?>[] groups() default {};

  Class<? extends Payload>[] payload() default {};
}
